package com.cloud.pole.mapper.goods;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cloud.pole.shop.model.entity.goods.ShopGoodsPromotion;
import com.cloud.pole.shop.model.vo.goods.ShopGoodsPromotionAdminVo;
import com.cloud.pole.shop.model.vo.goods.ShopGoodsPromotionVo;

import tk.mybatis.mapper.common.Mapper;

public interface ShopGoodsPromotionMapper extends Mapper<ShopGoodsPromotion> {
	
	public List<ShopGoodsPromotionVo> selectShopGoodsPromotionVoListByMap(Map<String, Object> map);
	
	public List<ShopGoodsPromotionAdminVo> selectShopGoodsPromotionAdminVoListByMap(Map<String, Object> map);
	
	public void addShopGoodsPromotionListMa(List<ShopGoodsPromotion> shopGoodsPromotionList);
	
	public List<ShopGoodsPromotion> selectAllPage(@Param("componentId")Integer componentId,@Param("shopId")Integer shopId);
	
	public ShopGoodsPromotion selectByIdMa(@Param("shopId")Integer shopId, @Param("indexRecommNum")Integer indexRecommNum, @Param("promotionId")Integer promotionId);

	public void updateShopGoodsPromotionMa(ShopGoodsPromotion shopGoodsPromotion);
}